-
-
Notifications
You must be signed in to change notification settings - Fork 11
[FIX] add some task checks so that role runs in check mode #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
artis3n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR! I've been meaning to get check mode nominally supported. I'll start testing against this PR shortly. Do you believe these are the only changes needed?
| when: | ||
| - tailscale_start is failed | ||
| - tailscale_start.stdout | length > 0 | ||
| - not ansible_check_mode and tailscale_start.stdout | length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each item in this list is an "and" statement on the when condition. Can you add a new item to the list instead of combining on this line?
I've added some checks to fix the role to also run without issues in check mode.